package com.company.ems.mapper;

import com.company.ems.model.Employee;
import com.company.ems.dto.EmployeeQueryDTO;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface EmployeeMapper {
    List<Employee> findAll(EmployeeQueryDTO query);
    Employee findById(@Param("id") Integer id);
    int insert(Employee employee);
    int update(Employee employee);
    int delete(@Param("id") Integer id);
    int count(EmployeeQueryDTO query);
}